package com.shop.cereshop.app.dao.dl;

import com.shop.cereshop.app.dl.logic.domain.CareShopNewsForwardLog;
import com.shop.cereshop.app.dl.logic.domain.CerePlatformUserPoint;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CerePlatformUserPointMapper {
    int deleteByPrimaryKey(Long pointId);

    int insert(CerePlatformUserPoint record);

    int insertSelective(CerePlatformUserPoint record);

    CerePlatformUserPoint selectByPrimaryKey(Long pointId);

    int updateByPrimaryKeySelective(CerePlatformUserPoint record);

    int updateByPrimaryKey(CerePlatformUserPoint record);

    List<CerePlatformUserPoint> getAllByUserid(Long buyerUserId);

    Integer getSumPoint(Long buyerUserId);

    List<CerePlatformUserPoint> pointsRedemptionRecord(Long buyerUserId);

    Integer selectAllPointsByUserid(Long productId);
}